'''
参数类型由字典类型转化为GET请求参数了
'''

from urllib.parse import urlencode

params = {
    'name':'germy',
    'age':22
}

base_url = 'http://www.baidu.com?'

url = base_url + urlencode(params)
print(url)